<!--<!DOCTYPE html>-->
<!--<html lang="en" xmlns:th="http://www.thymeleaf.org">-->
<!--<head>-->
<!--    <meta charset="UTF-8">-->
<!--    <title>Title</title>-->
<!--</head>-->
<!--<body>-->
<!--<form method="post" action="/login2">-->
<!--    name:<input type="text" name="name"></input><br>-->
<!--    password:<input type="text" name="password"></input><br>-->
<!--    提交按钮:<input type="submit" value="登录"></input><br>-->
<!--</form>-->
<!--</body>-->
<!--</html>-->
<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>登录 - 人员管理系统</title>
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="login-page">
<div class="login-container">
    <div class="app-logo">
        <i class="fas fa-users"></i>
    </div>
    <h1>人员管理系统</h1>

    <form method="post" action="/login2" class="login-form">
        <div class="form-group">
            <label for="name">
                <i class="fas fa-user"></i> 用户名
            </label>
            <input type="text" id="name" name="name" placeholder="请输入用户名" required>
        </div>
        <div class="form-group">
            <label for="password">
                <i class="fas fa-lock"></i> 密码
            </label>
            <input type="password" id="password" name="password" placeholder="请输入密码" required>
        </div>
        <div class="error-message" th:if="${error != null}" th:text="${error}"></div>
        <div class="form-actions">
            <input type="submit" value="登录系统">
        </div>
    </form>
</div>
</body>
</html>
